package com.tempjob.common.businesss.mongo.entity;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionField;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.FieldFill;
import com.anwen.mongo.enums.IdTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author hui
 * @Date 2024/12/5 11:22
 **/
@CollectionName("user_job_browse_record")
@ApiModel("职位浏览记录")
@Data
public class UserJobBrowseRecord {

    @ID(type = IdTypeEnum.OBJECT_ID)
    @CollectionField("_id")
    @ApiModelProperty("id")
    private String id;

    @CollectionField("user_id")
    @ApiModelProperty("用户id")
    private String userId;

    @CollectionField("job_id")
    @ApiModelProperty("工作id")
    private String jobId;

    @CollectionField("job_type")
    @ApiModelProperty("工作类型:1零工2正式工3就业基地招聘")
    private Integer jobType;

    @CollectionField("job_category")
    @ApiModelProperty("工作分类")
    private String jobCategory;

    @CollectionField("job_title")
    @ApiModelProperty("标题")
    private String jobTitle;

    @ApiModelProperty("学历要求")
    @CollectionField("education")
    private String education;

    @ApiModelProperty("技能要求")
    @CollectionField("skill")
    private String skill;

    @ApiModelProperty("经验要求")
    @CollectionField("experience")
    private String experience;

    @CollectionField(value = "oper_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间", hidden = true)
    private Date operTime;


}
